using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
//using Microsoft.Xna.Framework.Input.Touch;
using Microsoft.Xna.Framework.Media;

namespace TDBaseDataLibrary
{
    public enum levelstate
    {
        levelstate_begin = 0,
        levelstate_ready = 1,
        levelstate_wave = 2,
        levelstate_end = 3,
        levelstate_scuess = 4,
        levelstate_nextvavedescript = 5,
    }
    public class TDBaseCtrlPal : TDBaseScene
    {
        public TDBaseCtrlPal(Game game)
            : base(game)
        {
        }
        ~TDBaseCtrlPal()
        {
        }
        public virtual int GetState(int nIndex)
        {
            return 0;
        }
    }
    public class TDBaseLevel : TDBaseScene
    {
        TDBaseCtrlPal m_CtrlPal;
        public TDBaseLevel(Game game):base(game)
        {
        }
        ~TDBaseLevel()
        {
        }
        public void SetCtrlPal(TDBaseCtrlPal CtrlPal)
        {
            m_CtrlPal = CtrlPal;
        }

        public override bool Init() 
        { 
            return true; 
        }
        public override void LoadContent(ContentManager Content) 
        { 
        }
        public override void UnloadContent() 
        { 
        }
        public override int UpdateInput(GameTime time, int OffsetX, int OffsetY)
        {
            return 1;
        }
        public override int Update(GraphicsDeviceManager graphics, GameTime gameTime)
        {
            //return  m_CtrlPal.Update(graphics,gameTime);
            return 0;
        }
        public override void Draw(GraphicsDeviceManager graphics, GameTime gameTime, SpriteBatch spriteBatch, int xOffset, int yOffset, float fScale) 
        {
           // m_CtrlPal.Draw(graphics,gameTime,spriteBatch,xOffset,yOffset); 
        }
    }
}
